import { createRouter, createMemoryHistory } from 'vue-router'  
import Home from '@/components/Home.vue'  
import Profile from '@/components/Profile.vue'  
  
const routes = [  
  {  
    path: '/',  
    component: Home  
  },  
  {  
    path: '/profile',  
    component: Profile  
  }  
]  
  
const routerHistory = createMemoryHistory()  
  
const router = createRouter({  
  history: routerHistory,  
  routes  
})  
  
export default router